import java.util.Scanner;

/**
 * 矩阵乘法
 * 如果A是个x行y列的矩阵，B是个y行z列的矩阵，把A和B相乘，其结果将是另一个x行z列的矩阵C。这个矩阵的每个元素是由下面的公式决定的
 */
public class HJ69 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            int z = scanner.nextInt();

            int[][] m1 = new int[x][y];
            int[][] m2 = new int[y][z];

            for (int i = 0; i < x; i++) {
                for (int j = 0; j < y; j++) {
                    m1[i][j] = scanner.nextInt();
                }
            }
            for (int i = 0; i < y; i++) {
                for (int j = 0; j < z; j++) {
                    m2[i][j] = scanner.nextInt();
                }
            }

            int[][] m3 = new int[x][z];

            for (int i = 0; i < x; i++) {
                for (int j = 0; j < z; j++) {
                    int res = 0;
                    for (int k = 0; k < y; k++) {
                        res += m1[i][k]*m2[k][j];
                    }
                    System.out.print(res+" ");
                }
                System.out.println();
            }
        }
    }
}
